<?php
	require("check_active.php");
?>
					<form id="login" method="post" class="window">
						<div class="cabeza">
							login
						</div>
						<div class="cuerpo">
							<div class="titulo">
								numero de control
							</div>
							<input id="ncontrol" name="ncontrol" value="" tabindex="0" />
						</div>
						<div class="btones">
							<input type="submit" value="Ingresar" />
						</div>
					</form>
					<script type="text/javascript">
						$('login').addEvent('submit', function(e){
								new Event(e).stop();
								var ncontrol = this.ncontrol.value;
								if(ncontrol.length==0) 
									alert("Debe ingresar un numero de control. Gracias");
								else
									site.showPassword(this.ncontrol.value);
							}
						);
						$('ncontrol').focus();
						
					</script>
